// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import './assets/css/reset.css'  // 引入公共样式



import utils from './utils/utils' // 工具类
Vue.prototype.$utils = utils


import 'mint-ui/lib/style.css'
import mintui from 'mint-ui'
Vue.use(mintui)

import { MessageBox } from 'mint-ui'
import { Toast } from 'mint-ui';
// import { Field } from 'mint-ui';
// Vue.component(Field.name, Field);
//
// import { Cell } from 'mint-ui';
// Vue.component(Cell.name, Cell);
//
// import { Checklist } from 'mint-ui';
// Vue.component(Checklist.name, Checklist);
//
// import { Button } from 'mint-ui';
// Vue.component(Button.name, Button);
//
//
// import { Navbar, TabItem } from 'mint-ui';
// Vue.component(Navbar.name, Navbar);
// Vue.component(TabItem.name, TabItem);
//
// import { TabContainer, TabContainerItem } from 'mint-ui';
// Vue.component(TabContainer.name, TabContainer);
// Vue.component(TabContainerItem.name, TabContainerItem);


Vue.prototype.$msgbox = MessageBox
Vue.prototype.$toast = Toast


import './font/iconfont.css'

import vueFilter from './utils/filters'  // 公共filter
for (let key in vueFilter){
  Vue.filter(key,vueFilter[key])
}


import {
  XButton,
  Datetime,
  Group,
  CellBox,
  Cell,
}from 'vux'



Vue.component('x-button', XButton);
Vue.component('Datetime', Datetime);
Vue.component('Group', Group);

Vue.component('CellBox', CellBox);
Vue.component('Cell', Cell);

import  { ToastPlugin } from 'vux'
Vue.use(ToastPlugin)



Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
